Using stack layouts

Stack layout arranges its children in 3D space next to each other in a stack on the selected axis. An object in the stack layout, takes space according to its bounding box (physical dimensions), but you can extend the virtual size of the object by using object-specific layout.

Creating a stack layout

To create a stack layout:

  1. In the Project right-click the scene where you want to create a stack layout and select Create > Stack Layout.
  2. Add several objects to the stack layout.
    For example, in the Project right-click the stack layout and select Create > Box.
    As you add objects, Kanzi Studio positions them along the axis defined by the Direction property.

Setting the distance between objects in a stack layout

You set the distance between objects by setting the properties of each object in a stack layout.

To set the distance between objects in a stack layout, in the Project select each object and adjust its Layout.Item properties. For example, to add space between objects you can set Layout HeightLayout Width, and Layout Depth properties to values that are higher than the height, width, and depth of the objects are.

See also

Layouts

Using stack layers